﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interfaces;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

namespace Model
{
    [Serializable]
    public class Runde : Interfaces.IRunde
    {
        #region Attributes
        private int rundeNr, modstander, farve, placering, rundeID;
        private double resultat, ialt;
        #endregion

        #region Constructor
        public Runde(int rundeNr, int modstander, int farve, double resultat, double ialt, int placering, int rundeID)
        {
            this.rundeNr = rundeNr;
            this.modstander = modstander;
            this.farve = farve;
            this.resultat = resultat;
            this.ialt = ialt;
            this.placering = placering;
            this.rundeID = rundeID;
        }
        #endregion

        #region Properties
        public int RundeNr
        {
            get { return rundeNr; }
        }

        public int Modstander
        {
            get { return modstander; }
            set { modstander = value; }
        }

        public int Farve
        {
            get { return farve; }
            set { farve = value; }
        }

        public double Resultat
        {
            get { return resultat; }
            set { resultat = value; }
        }

        public double Ialt
        {
            get { return ialt; }
            set { ialt = value; }
        }

        public int Placering
        {
            get { return placering; }
            set { placering = value; }
        }

        public int RundeID
        {
            get { return rundeID; }
        }
        #endregion
    }
}
